package com.xinyi.weixin.core.message.reply;

import com.xinyi.weixin.core.message.Message;
/**
 * 
 * @description 图片回复信息
 * @author wangchuan
 * @date 2014年7月5日下午9:09:38
 * @version 1.0
 */
public class MediaReplyMessage extends Message {
	/**
	 * 通过上传多媒体文件，得到的id
	 */
	private String mediaid;
	/**
	 * 视频消息的标题 
	 */
	private String title;
	/**
	 * 视频消息的描述 
	 */
	private String description;
	
	public MediaReplyMessage(){}
	
	public MediaReplyMessage(String msgType, String fromUserName, String toUserName,String mediaid,long createTime){
		super(msgType, fromUserName, toUserName, createTime);
		this.mediaid = mediaid;
	}
	
	public MediaReplyMessage(String msgType, String fromUserName, String toUserName,String mediaid,String title,String description,long createTime){
		super(msgType, fromUserName, toUserName, createTime);
		this.mediaid = mediaid;
		this.title= title;
		this.description = description;
	}
	
	public String getMediaid() {
		return mediaid;
	}
	public void setMediaid(String mediaid) {
		this.mediaid = mediaid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 
	 * @description 返回图片消息
	 * @param fromUserName
	 * @param toUserName
	 * @param mediaid
	 * @param createTime
	 * @return
	 * @return MediaReplyMessage
	 * @author wangchuan
	 * @throws
	 */
	public static MediaReplyMessage getImageReplyMessage(String fromUserName, String toUserName,String mediaid,long createTime){
		return new MediaReplyMessage(Message.image, fromUserName, toUserName, mediaid, createTime);
	}
	/**
	 * 
	 * @description 返回声音消息
	 * @param fromUserName
	 * @param toUserName
	 * @param mediaid
	 * @param createTime
	 * @return
	 * @return MediaReplyMessage
	 * @author wangchuan
	 * @throws
	 */
	public static MediaReplyMessage getVoiceReplyMessage(String fromUserName, String toUserName,String mediaid,long createTime){
		return new MediaReplyMessage(Message.voice, fromUserName, toUserName, mediaid, createTime);
	}
	/**
	 * 
	 * @description 返回视频消息
	 * @param fromUserName
	 * @param toUserName
	 * @param mediaid
	 * @param title
	 * @param description
	 * @param createTime
	 * @return
	 * @return MediaReplyMessage
	 * @author wangchuan
	 * @throws
	 */
	public static MediaReplyMessage getVideoReplyMessage( String fromUserName, String toUserName,String mediaid,String title,String description,long createTime){
		return new MediaReplyMessage(Message.video, fromUserName, toUserName, mediaid, title, description, createTime);
	}
}
